<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <el-button type="text" @click="getAllProduct">open Dialog</el-button>
    <RegisterPage :isShow="centerDialogVisible"></RegisterPage>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import RegisterPage from '@/components/register-page.vue'
export default defineComponent({
  name: 'HelloWorld',
  props: {
    msg: String,
  },
  components: {
    RegisterPage,
  },
  mounted() {

  },
  data() {
    return {
      centerDialogVisible: false,
    }
  },
  methods: {
    showRegistor(): void {
      this.centerDialogVisible = true
    },
  },
})
</script>
